import { post } from '@/utils/request'

export default {
    list: query => post('/api/admin/education/subject/list'),
    pageList: query => post('/api/admin/education/subject/page', query),
    edit: query => post('/api/admin/education/subject/edit', query),
    select: id => post('/api/admin/education/subject/select/' + id),
    deleteSubject: id => post('/api/admin/education/subject/delete/' + id)
}


import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/tools";

export function SubJectList() {
    return request({
        url: '/api/admin/education/subject/list',
        method: 'post'
    })
}

export function SubJectPageList(query) {
    return request({
        url: '/api/admin/education/subject/page',
        method: 'post',
        params: query
    })
}
export function SubJectEdit(id) {
    return request({
        url: '/api/admin/education/subject/edit/' + id,
        method: 'post',
    })
}
export function SubJectSelect(id) {
    return request({
        url: '/api/admin/education/subject/select/' + id,
        method: 'post',
    })
}
export function SubJectDeleteSubject(id) {
    return request({
        url: '/api/admin/education/subject/delete/' + id,
        method: 'post',
    })
}
